package mest.service.cxj.impl;

import mest.VO.cxj.FinancialOtherIncomeVO;
import mest.entity.FinancialOtherIncome;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import mest.dao.cxj.FinancialOtherIncomeDao;
import mest.service.cxj.FinancialOtherIncomeService;

import java.math.BigDecimal;
import java.util.List;

@Service
public class FinancialOtherIncomeServiceImpl implements FinancialOtherIncomeService {

    @Resource
    private FinancialOtherIncomeDao financialOtherInComeDao;

    @Override
    public Integer insertFinancialOtherIncome(FinancialOtherIncome foi, String theirDb) {
        return financialOtherInComeDao.insertFinancialOtherIncome(foi, theirDb);
    }

    @Override
    public List<FinancialOtherIncomeVO> selectAllFinancialOtherIncome(Integer page, Integer limit, Integer status, String content, String theirDb) {
        return financialOtherInComeDao.selectAllFinancialOtherIncome((page-1)*limit, limit, status, content, theirDb);
    }

    @Override
    public Integer selectCountFinancialOtherIncome(Integer status, String content, String theirDb) {
        return financialOtherInComeDao.selectCountFinancialOtherIncome(status, content, theirDb);
    }

    @Override
    public Integer modifyFinancialOtherIncome(FinancialOtherIncome foi, String theirDb) {
        return financialOtherInComeDao.modifyFinancialOtherIncome(foi, theirDb);
    }

    @Override
    public Integer changeStatus(Integer id, String theirDb) {
        return financialOtherInComeDao.changeStatus(id, theirDb);
    }

    @Override
    public FinancialOtherIncome selectFinancialOtherIncomeById(Integer id, String theirDb) {
        return financialOtherInComeDao.selectFinancialOtherIncomeById(id, theirDb);
    }

    @Override
    public Integer updateFinancialOtherIncomeByMoney(Integer id, BigDecimal hasBennMoney, String theirDb) {
        return financialOtherInComeDao.updateFinancialOtherIncomeByMoney(id, hasBennMoney, theirDb);
    }

}
